<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<title>文章列表--layui后台管理模板</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="//at.alicdn.com/t/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../css/news.css" media="all" />
</head>
<body class="childrenBody">
	<blockquote class="layui-elem-quote news_search">
		<!--<div class="layui-inline">-->
		    <!--<div class="layui-input-inline">-->
		    	<!--<input type="text" value="" placeholder="请输入关键字" class="layui-input search_input">-->
		    <!--</div>-->
		    <!--<a class="layui-btn search_btn">查询</a>-->
		<!--</div>-->
		<div class="layui-inline">
			<a class="layui-btn layui-btn-normal newsAdd_btn">添加信用卡</a>
		</div>
	</blockquote>
	<div class="layui-form news_list">
	  	<table class="layui-table">
		    <thead>
				<tr>
					<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
					<th>logo</th>
					<th>标题</th>
					<th style="...">简介</th>
					<th>链接</th>
					<th>排序</th>
					<th>发布时间</th>
					<th>操作</th>
				</tr>
				<tr th:each="card,cardStat : ${list}">
					<td><input type="checkbox" name="checked" lay-skin="primary" lay-filter="choose">
						<div class="layui-unselect layui-form-checkbox" lay-skin="primary">
							<i class="layui-icon"></i>
						</div>
					</td>
					<td><img th:src="${card.logo}" style="width:20px;height:20px;"></img></td>
					<td align="left" th:text="${card.title}"></td>
					<td th:text="${card.info}"></td>
					<td><a th:href="${card.link}" target="_blank">链接</a></td>
					<td th:text="${card.sort}"></td>
					<td th:text="${#calendars.format(card.aTime,'yyyy-MM-dd')}"></td>
					<td>
						<a class="layui-btn layui-btn-mini news_edit" th:attr="card=${card.id}" th:><i class="iconfont icon-edit"></i> 编辑</a>
						<!--<a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>-->
						<a class="layui-btn layui-btn-danger layui-btn-mini card_del" th:attr="data-id=${card.id}"><i class="layui-icon"></i> 删除</a>
					</td>
				</tr>
		    </thead>
		    <tbody class="news_content"></tbody>
		</table>
	</div>
	<div id="page"></div>
	<script type="text/javascript"  th:src="@{/layui/layui.js}"></script>
	<script type="text/javascript"  th:src="@{/js/card/list.js}"></script>
</body>
</html>